package _15_generics._15_4;

/**
 *
 */
public class CountedObject {
    private static long counter;
    private final long id = counter++;
    public long id(){
        return id;
    }

    @Override
    public String toString() {
        return "CountedObject " + id;
    }
}
